<template>
	<view class="member-center-page" >
		<view>
			<!--  :style="{'height':page_type=='1'?'386upx':'0upx'}" -->
			<view class="member-msg-all" :class="page_type=='3'||page_type=='4' ? 'member-msg-allass':'member-msg-all'">
				<view class="member-msg-person">
					<view class="member-msg-person-left" :style="{'height':page_type=='3'||page_type=='4'?'236upx':'0upx'}">
						<image :src="avatarUrl" mode="" v-if="avatarUrl != ''"></image>
						<view class="bg-img" v-else @click="login"></view>
						<view class="memeber-msg-details" >
							<view class="" v-if="nickName != ''">
								{{nickName}}
							</view>
							<view class="deng-lu" v-else @click="login">
								请先登录
							</view>
							<view class="vip-msg" v-if="page_type == '3'||page_type=='4'">
								<image :src="imglink + 'member/VIP.png'" mode=""></image>
								<text>{{teambenefits.storeInfo.user_level}}剩余{{viptime}}天</text>
								<view class="renew-vip" @click="centerPage('renew')" v-if="page_type == '3'||page_type=='4' && viptime<31">
									立即续费
								</view>
							</view>
							<view class="vip-icon" v-else>VIP会员</view>
						</view>
					</view>
					<view class="member-msg-person-right" @click="centerPage('updata')">
						<image :src="imglink + 'member/member-right.png'" mode=""></image>
					</view>
				</view>
				<view class="performance-today" style="bottom: 0upx; top: 150upx;" v-if="page_type == '3'||page_type=='4'">
					<view class="performance-today-title">
						<view class="">
							今日业绩
						</view>
						<view class="" @click="centerPage('shopPerfor')">
							<text>查看所有业绩</text>
							<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
						</view>
					</view>
					<view class="recommend-coupon-content">
						<view class="recommend-coupon-details">
							<view class="">¥{{todayAchievement.total}}</view>
							<view class="">成交额(元)</view>
						</view>
						<view class="recommend-coupon-line"></view>
						<view class="recommend-coupon-details">
							<view class="">{{todayAchievement.num}}</view>
							<view class="">成交数(个)</view>
						</view>
						<view class="recommend-coupon-line"></view>
						<view class="recommend-coupon-details">
							<view class="">{{todayAchievement.people}}</view>
							<view>客户数(人)</view>
						</view>
					</view>
					<!-- <view class="performance-today-msg">
						<view class="common-style" v-for="(item,index) in performanceMsg" :key='index'>
							<text>{{item.value}}</text>
							<text>{{item.name}}</text>
						</view>
						<view class="line"></view>
					</view> -->
				</view>
				<view class="performance-today" style="top: 410upx;height: 300upx;" v-if="page_type == '3'||page_type=='4'">
					<view class="performance-today-title">
						<view class="">
							会员平台奖励
						</view>
					</view>
					<view class="recommend-coupon-content">
						<view class="recommend-coupon-details" @click="teamclick(1,teambenefits.personal)">
							<view class="">￥{{teambenefits.personal || 0}}元</view>
							<view class="">个人奖励</view>
						</view>
						<view class="recommend-coupon-line"></view>
						<view class="recommend-coupon-details" @click="teamclick(2,teambenefits.storeInfo.reward_balance2)">
							<view class="">￥{{teambenefits.storeInfo.reward_balance2 || 0}}元</view>
							<view class="">绑定团队收益</view>
						</view>
						<view class="recommend-coupon-line"></view>
						<view class="recommend-coupon-details" @click="teamclick(3,teambenefits.storeInfo.reward_balance)">
							<view class="">￥{{teambenefits.storeInfo.reward_balance || 0}}元</view>
							<view>团队推广收益</view>
						</view>
						<view class="recommend-coupon-reward">平台已累计分配奖励<text>￥{{allmoney}}</text>万元</view>
					</view>
				</view>
				<!-- 精准用户池 -->
				<view class="performance-today" style="top: 730upx;" v-if="page_type == '3'||page_type=='4'">
					<view class="performance-today-title">
						<view class="">
							精准用户池
						</view>
					</view>
					<view class="recommend-coupon-content">
						<view class="recommend-coupon-details" @click="cluesJump(1)">
							<view class="">{{parentClueModule.todayNewUser + parentClueModule.todayOldUser || 0}}人</view>
							<view class="">今日家长线索</view>
						</view>
						<view class="recommend-coupon-line"></view>
						<view class="recommend-coupon-details" @click="cluesJump(2)">
							<view class="">{{parentRanking || 0}}人</view>
							<view class="">家长裂变排行</view>
						</view>
						<view class="recommend-coupon-line"></view>
						<view class="recommend-coupon-details" @click="cluesJump(3)">
							<view class="">{{parentClueModule.allUser || 0}}人</view>
							<view>店铺总线索</view>
						</view>
					</view>
				</view>
				<!-- <view class="performance-today" style="top: 150upx;" v-if="page_type == '1'">
					<view class="performance-today-title">
						<view class="">
							精准用户池
						</view>
					</view>
					<view class="recommend-coupon-content">
						<view class="recommend-coupon-details" @click="cluesJump(1)">
							<view class="">{{parentClueModule.todayNewUser + parentClueModule.todayOldUser || 0}}人</view>
							<view class="">今日家长线索</view>
						</view>
						<view class="recommend-coupon-line"></view>
						<view class="recommend-coupon-details" @click="cluesJump(2)">
							<view class="">{{parentRanking || 0}}人</view>
							<view class="">家长裂变排行</view>
						</view>
						<view class="recommend-coupon-line"></view>
						<view class="recommend-coupon-details" @click="cluesJump(3)">
							<view class="">{{parentClueModule.allUser || 0}}人</view>
							<view>店铺总线索</view>
						</view>
					</view>
				</view> -->
			</view>
			<!-- 店铺信息 -->
			<view class="shop-msg" @click="centerPage('shop')" v-if="page_type == '3'||page_type=='4'">
				<view class="shop-msg-title">
					店铺信息
				</view>
				<view class="shop-msg-details">
					<!-- <text v-if="cardId ==''">未绑定收款银行卡，将导致无法收款</text> -->
					<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
				</view>
			</view>
			<!-- 店铺个人收款码 -->
			<!-- <view class="shop-msg" @click="centerPage('collectioncode')" v-if="page_type == '3'">
				<view class="shop-msg-title">
					店铺个人收款码
				</view>
				<view class="shop-msg-details">
					<text v-if="cardId ==''">点击产生专属收款码</text>
					<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
				</view>
			</view> -->
			<!-- 课拍拍运营管理 -->
			<view>
				<view class="performance-today" style="top: 150upx;height: 300upx;" v-if="page_type == '1'||page_type=='2'">
					<view class="performance-today-title">
						<view class="">
							会员平台奖励
						</view>
					</view>
					<view class="recommend-coupon-content">
						<view class="recommend-coupon-details" @click="teamclick(1,teambenefits.personal)">
							<view class="">￥{{teambenefits.personal || 0}}元</view>
							<view class="">个人奖励</view>
						</view>
					</view>
				</view>
			</view>
			<view class="operation-manage" v-if="page_type=='4'">
				<view class="operation-manage-title">
					<view class="">
						运营管理
					</view>
					<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
				</view>
				<view class="kpp-operation-manage-details">
					<view class="" v-for="(item,index) in kppOperationMsgAdmin" :key="index" @click="kppCenterActAdim(index)">
						<image :src="item.url" mode=""></image>
						<view class="details-msg">{{item.name}}</view>
						<view class="kpp-operation-tip">{{item.value}}</view>
					</view>
				</view>
			</view>
			<view class="operation-manage" v-if="page_type == '3'">
				<view class="operation-manage-title">
					<view class="">
						运营管理
					</view>
					<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
				</view>
				<view class="kpp-operation-manage-details">
					<view class="" v-for="(item,index) in kppOperationMsg" :key="index" @click="kppCenterAct(index)">
						<image :src="item.url" mode=""></image>
						<view class="details-msg">{{item.name}}</view>
						<view class="kpp-operation-tip">{{item.value}}</view>
					</view>
				</view>
			</view>
			<view class="operation-manage" style="margin-top: 350upx;" v-if="page_type == '2'">
				<view class="operation-manage-title">
					<view class="">
						运营管理
					</view>
					<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
				</view>
				<view class="kpp-operation-manage-details">
					<view class="" v-for="(item,index) in operationMsgHeader" :key="index" @click="centerActHeader(index)" style="margin-bottom: 62upx;">
						<image :src="item.url" mode=""></image>
						<view class="details-msg">{{item.name}}</view>
						<view class="kpp-operation-tip" style="width: 106upx;left: 85upx;">{{item.value}}</view>
					</view>
				</view>
			</view>
			<view class="operation-manage" style="margin-top: 350upx;" v-if="page_type == '1'">
				<view class="operation-manage-title">
					<view class="">
						运营管理
					</view>
					<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
				</view>
				<view class="kpp-operation-manage-details">
					<!-- 跟队长的区别在于没有 创建活动 和 短视频招生 功能-->
					<view class="" v-for="(item,index) in operationMsgHeader" :key="index" v-if="item.name!='创建活动'&&item.name!='短视频招生'" @click="centerActHeader(index)" style="margin-bottom: 62upx;">
						<image :src="item.url" mode=""></image>
						<view class="details-msg">{{item.name}}</view>
						<view class="kpp-operation-tip" style="width: 106upx;left: 85upx;">{{item.value}}</view>
					</view>
				</view>
			</view>
			<view class="operation-manage"  v-if="page_type=='0'">
				<view class="operation-manage-title">
					<view class="">
						运营管理
					</view>
					<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
				</view>
				<view class="kpp-operation-manage-details">
					<view class="" v-for="(item,index) in operationMsgStaff" :key="index" @click="centerActStaff(index)">
						<image :src="item.url" mode=""></image>
						<view class="details-msg">{{item.name}}</view>
						<view class="kpp-operation-tip" style="width: 106upx;left: 85upx;">{{item.value}}</view>
					</view>
				</view>
			</view>
			<!-- 个人业绩 平台奖励 客户资源 -->
			<view class="performance-award-resource" v-if="page_type != '0'">
				<view class="performance-person" @click="centerPage('perfor')">
					<view class="">
						个人业绩
					</view>
					<view class="">
						<text>已成交<text class="act-color">¥{{perforMsg.total || 0}}</text>，成交<text class="act-color">{{perforMsg.num}}</text>人</text>
						<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
					</view>
				</view>
				<view class="performance-person" @click="centerPage('award')" v-if="false">
					<view class="">
						平台奖励(元)
					</view>
					<view class="">
						<text>可提现到微信零钱<text class="act-color">¥1.00</text></text>
						<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
					</view>
				</view>
				<view class="performance-person" @click="centerPage('client')" v-if="page_type =='3'||page_type=='4'">
					<view class="">
						客户资源
					</view>
					<view class="">
						<!-- <text>一键导出客户资源</text> -->
						<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
					</view>
				</view>
			</view>
			<!-- 优惠券 我的订单 -->
			<view class="coupon-order">
				<view class="performance-person" @click="centerPage('coupon')">
					<view class="">
						我的优惠券
					</view>
					<view class="">
						<text>可用<text class="act-color">{{useCoupon.length}}</text>张优惠券</text>
						<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
					</view>
				</view>
				<view class="performance-person" @click="centerPage('order')">
					<view class="">
						我的订单
					</view>
					<view class="">
						<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
					</view>
				</view>
				<view class="order-details-mag">
					<view class="" v-for="(item,index) in orderMsg" :key="index" @click="orderState(index)">
						<image :src="item.src" mode=""></image>
						<view class="order-details-state">{{item.name}}</view>
						<view class="order-details-tip">{{item.value}}</view>
					</view>
				</view>
			</view>
			<!-- 我的购物卡 如何使用 注册店铺  联系客服-->
			<view class="coupon-order" style="margin-bottom: 140upx;">
				<view class="performance-person" @click="centerPage('goHome')">
					<view class="">
						我要上首页
					</view>
					<view class="">
						<text><text class="act-color">平台限时免费推广</text></text>
						<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
					</view>
				</view>
				<view class="performance-person"  @click="centerPage('question')">
					<view class="">
						如何使用
					</view>
					<view class="">
						<text>常见问题</text>
						<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
					</view>
				</view>
				<view class="performance-person" @click="contactService" v-if="page_type == '3'||page_type=='4'">
					<view class="">
						联系客服
					</view>
					<view class="">
						<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
					</view>
				</view>
				<view class="performance-person" @click="centerPage('register')">
					<view class="">
						快速注册通道，开设自己的小店铺
					</view>
					<view class="">
						<image :src="imglink + 'member/member-right-two.png'" mode=""></image>
					</view>
				</view>
				<!-- #ifdef H5 -->
					<view class="performance-person" @click="logout()">
						<view class="reLogin">
							<span>重新登录</span>
						</view>
					</view>
				<!-- #endif -->
				<!-- #ifdef MP-WEIXIN -->
				<view class="performance-person" @click="login()">
					<view class="reLogin">
						<span>重新登录</span>
					</view>
				</view>
				<!-- #endif -->
			</view>
		</view>
		<!-- 联系老师弹框 -->
		<uni-popup ref="contactPopup" :custom="true">
			<view class="popup_box_de" style="height: 996upx;">
				<image class="popup_box_close" :src="imglink + 'home/popup-close.png'" @click="popupSwitch"></image>
				<view class="popup_box_content" style="top: 62upx;height: 900upx;">
					<view class="teacher-code">
						<view class="teacher-code-title">
							<view class="pupop-line"></view>
							<view class="teacher-code-title-detail">联系老师</view>
							<view class="pupop-line"></view>
						</view>
						<view class="teacher-code-tip">有任何问题，请咨询老师</view>
						<view class="teacher-code-content" id="posterImg">
							<view class="teacher-code-content-tip" id="textBg">长按下面二维码，添加老师微信</view>
							<image :src="teacherWay.wechat_qrcode" mode="" id="qrCode"></image>
							<view class="teacher-code-add" id="text3">
								添加老师微信请备注<text>“活动报名”</text>
							</view>
						</view>
					</view>
					<view class="teacher-phone" style="padding: 0 30upx;box-sizing: border-box;">
						<view class="teacher-phone-title">
							<text>老师联系电话</text>
							<view class="" @click="callPhone">
								<image :src="imglink + 'home/phone-icon.png'" mode=""></image>
								<text>拔打电话</text>
							</view>
						</view>
						<view class="teacher-phone-content">
							{{teacherWay.changePhone}}
						</view>
						<view class="" style="color: #999999;text-align: center;font-size: 24upx;margin-top: 10upx;">
							电话接通，请告知“活动报名"
						</view>
					</view>
				</view>
			</view>
		</uni-popup>
		<tabBar :storeId='store_id'></tabBar>
	</view>
</template>

<script>
	import tabBar from '@/common/tabBar.vue'
	import uniPopup from '@/components/uni-popup/uni-popup.vue'
	import store from '../../store/index.js';
	import { testLogin, userLogin, newInfo, login } from '@/common/login.js';
	export default{
		components:{tabBar,uniPopup},
		data(){
			return {
				imglink: this.$store.state.imgLink,
				recommendMoney:'',
				operationMsgOrgan:[
					{name:'创建活动',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_create.png'},
					{name:'管理活动',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_manage.png'},
					{name:'短视频招生',url:'https://tool.tuanhaoke.cn/static/image/shortvideo/up-video.svg'},
					{name:'店铺邀请奖励',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_share.png'},
					{name:'发布招生需求',url:'https://tool.tuanhaoke.cn/static/image/shortvideo/recruit-students.png'},
					{name:'员工管理',url:'https://tool.tuanhaoke.cn/static/image/member/group_fill.png'},
					{name:'资金管理',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_money.png',value:'提现'},
					{name:'推荐赚钱',url:'https://tool.tuanhaoke.cn/static/image/shortvideo/recommend.png',value:'赚¥699'},
					{name:'信息收集',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_information.png'},
				],//机构运营管理
				operationMsgAdmin:[
					{name:'创建活动',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_create.png'},
					{name:'管理活动',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_manage.png'},
					{name:'信息收集',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_information.png'},
					{name:'员工管理',url:'https://tool.tuanhaoke.cn/static/image/member/group_fill.png'},
					{name:'门店管理',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_stores.png'},
					{name:'资金管理',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_money.png',value:'提现'},
				],//管理员运营管理
				orderMsg:[
					{name:'进行中',src:'https://tool.tuanhaoke.cn/static/image/member/person_icon_deliver_fill.png',value:'0'},
					{name:'已完成',src:'https://tool.tuanhaoke.cn/static/image/member/person_icon_deliver_complete.png',value:'0'},
					{name:'失败订单',src:'https://tool.tuanhaoke.cn/static/image/member/person_icon_deliver_fail.png',value:'0'},
				],
				nickName:'',//微信头像
				avatarUrl:"",//微信昵称
				page_type:'',//用户类型  4管理员 3机构   2队长   1员工  0用户
				operationMsgHeader:[
					{name:'创建活动',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_create.png'},
					{name:'管理活动',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_manage.png'},
					{name:'短视频招生',url:'https://tool.tuanhaoke.cn/static/image/shortvideo/up-video.svg'},
					{name:'推荐赚钱',url:'https://tool.tuanhaoke.cn/static/image/shortvideo/recommend.png',value:'赚¥699'},
					{name:'信息收集',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_information.png'},
				],//队长运营管理
				operationMsgStaff:[
					{name:'推荐赚钱',url:'https://tool.tuanhaoke.cn/static/image/shortvideo/recommend.png',value:'赚¥699'},
				],//员工运营管理
				currentPge:'',//当前页面
				option:'',
				useCoupon:[],
				perforMsg:{},
				cardList:'',
				allPerfor:'',
				todayAchievement:{},
				store_id:0,
				viptime:'',
				cardId:'',
				token:'',
				teacherWay:"",
				// 课拍拍运营管理
				kppOperationMsg:[
					{name:'创建活动',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_create.png'},
					{name:'管理活动',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_manage.png'},
					{name:'短视频招生',url:'https://tool.tuanhaoke.cn/static/image/shortvideo/up-video.svg'},
					{name:'店铺邀请奖励',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_share.png'},
					{name:'发布招生需求',url:'https://tool.tuanhaoke.cn/static/image/shortvideo/recruit-students.png'},
					{name:'员工管理',url:'https://tool.tuanhaoke.cn/static/image/member/group_fill.png'},
					{name:'资金管理',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_money.png',value:'提现'},
					{name:'推荐赚钱',url:'https://tool.tuanhaoke.cn/static/image/shortvideo/recommend.png',value:'赚¥'},
					{name:'信息收集',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_information.png'},
					{name:'门店管理',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_stores.png'},
				],
				kppOperationMsgAdmin:[
					{name:'创建活动',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_create.png'},
					{name:'管理活动',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_manage.png'},
					{name:'短视频招生',url:'https://tool.tuanhaoke.cn/static/image/shortvideo/up-video.svg'},
					{name:'店铺邀请奖励',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_share.png'},
					{name:'发布招生需求',url:'https://tool.tuanhaoke.cn/static/image/shortvideo/recruit-students.png'},
					{name:'员工管理',url:'https://tool.tuanhaoke.cn/static/image/member/group_fill.png'},
					{name:'推荐赚钱',url:'https://tool.tuanhaoke.cn/static/image/shortvideo/recommend.png',value:'赚¥'},
					{name:'信息收集',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_information.png'},
					{name:'门店管理',url:'https://tool.tuanhaoke.cn/static/image/member/person_icon_stores.png'},
				],
				parentClueModule:[],
				parentRanking:'',
				teambenefits:{
					personal:0,
					storeInfo:{
						
					},
					allmaney:0
				},
				allmoney:'123'
			}
		},
		onLoad(options) {
			let store_id = parseInt(options.store_id,10);
			console.log('进入了onload 获取url的store_id',store_id)
			if(!store_id > 0){
				store_id = uni.getStorageSync('store_id')?parseInt(uni.getStorageSync('store_id'),10):0
			}else{
				uni.setStorageSync('store_id', store_id)
			}
			
			this.store_id = parseInt(store_id,10)
			this.$store.commit('updateStoreId',store_id)
			console.log('进入了onload 最终得到store_id',this.store_id)
			let token = options.token;
			if(!token){
				token = uni.getStorageSync('token')
			}else{
				uni.setStorageSync('token', token);
			}
			this.token = token
			this.$store.commit('updateToken',token)
			if(this.$store.getters.getToken){
				// this.getCustomer()
			}
			this.getParentClues()
			this.getCustomer()//获取用户角色
			this.getRecommendMoney()
			this.get_store_capital()
		},
		onShow() {
			// #ifdef MP-WEIXIN
				wx.hideHomeButton()
			// #endif
			if(this.$store.getters.getToken) {
				try {
					const res = uni.getStorageSync('userInfo');
					if (res) {
						this.nickName = res.nickname
						this.avatarUrl = res.headimgurl
					}
				} catch (e) {
					this.nickName = this.$store.state.nickname
					this.avatarUrl = this.$store.state.avatarUrl
				}
			}
			// #ifdef H5
				let pages = getCurrentPages()
				this.currentPge = pages[0].$route.fullPath
			// #endif
			console.log(this.currentPge,'000000000000000000000');
			if(this.$store.getters.getToken) {
				this.getCustomer()//获取用户角色
				this.getAllOrder()//获取订单
				this.gainData()//获取购物卡
				try {
					const res = uni.getStorageSync('userInfo');
					if (res) {
						this.nickName = res.nickname
						this.avatarUrl = res.headimgurl
					}
				} catch (e) {
					this.nickName = this.$store.state.nickname
					this.avatarUrl = this.$store.state.avatarUrl
				}
			}
			
			//  去除分享链接中分享者的token
			// #ifdef H5
				const stateObj = this.currentPge
				let pattern = /(&token+.*&)|(&token+.*)/
				this.currentPge = this.currentPge.replace(pattern, '&')
				history.replaceState(stateObj, "", this.currentPge)
			// #endif
			
			this.getParentClues()
			this.getParent()
			this.getRecommendMoney()
			this.get_sys_dicts()
		},
		methods:{
			get_sys_dicts(){
				let data = {
					token:this.$store.getters.getToken,
				}
				
				this.$api.get_sys_dict(data).then(res => {
					this.allmoney=res.list.data[res.list.data.length-1].value
					console.log(res,"789+++++++++++++++++++++++++++++++++++++++++")
				}).catch(err => {
					console.log(err,'789+++++++++++++++++++++++++++++++++++++++++')
				})
			},
			gainShopId(){
				// console.log('gainShopId',this.token)
				let data = {
					token:this.$store.getters.getToken,
				}
				console.log(data,'gainShopId data')
				this.$api.judge_store(data).then(res => {
					console.log(res,'judge_store')
					if(res.status){
						this.$store.commit('updateStoreId',res.store_id);
						uni.setStorageSync("shopID",res.store_id)
					}
				}).catch(err => {
					console.log(err,'this.$api.judge_store')
				})
			},
			get_store_capital(){
				let data = {
					token:this.$store.getters.getToken,
					customer_store_id:this.$store.state.store_id
				}
				this.$api.gain_shop_msg(data).then(res => {
					console.log(res.data.user_level,"1456+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++")
					if(res.status){
						this.teambenefits.storeInfo=res.data
						if(!this.teambenefits.storeInfo.user_level){
							this.teambenefits.storeInfo.user_level="超级管理员"
						}
						// console.log(res.storeInfo,"storeInfo")
						// this.teambenefits.allmaney=this.teambenefits.storeInfo.reward_balance_total2||0+Number(this.teambenefits.storeInfo.reward_balance_total)/10000
						// this.teambenefits.allmaney=this.teambenefits.allmaney.toFixed(4)
					}else{
						uni.showToast({
							title:res.msg,
							icon:"none",
							duration:2000
						})
					}
					
				}).catch(err => {
					
					uni.showToast({
						title:err,
						icon:"none",
						duration:2000
					})
					
					console.log(err,'that.$api.get_store_income')
				})
			},
			getRecommendMoney(){
				let obj=uni.getStorageSync('userInfo')
				let data = {
					token:this.$store.getters.getToken,
					customer_id:this.$store.getters.getCustomerId||obj.customer_id,
					page: 1,
					pagesize: 1
				}
				console.log("8888888",data);
				// 3.发送请求
				this.$api.get_recommendMoney(data).then(res => {
					console.log(res,"545454");
					if(res.status){
						this.recommendMoney = res.data.other[1].content
						this.kppOperationMsg.forEach((item) => {
							if( item.name == '推荐赚钱' ){
								item.value = '赚¥' + this.recommendMoney
							}
						})
						this.operationMsgHeader.forEach((item) => {
							if( item.name == '推荐赚钱' ){
								item.value = '赚¥' + this.recommendMoney
							}
						})
						this.operationMsgStaff.forEach((item) => {
							if( item.name == '推荐赚钱' ){
								item.value = '赚¥' + this.recommendMoney
							}
						})
						console.log(this.recommendMoney,'推荐赚钱')
					}else{
						uni.showToast({
							title:res.msg,
							icon:'none',
							duration:2000
						})
					}
				}).catch(err =>{
					console.log(err)
				})
			},
			// 获取店铺总家长线索
			getParentClues(){
				let data = {
					token:this.$store.getters.getToken,
					store_id:this.$store.getters.getStoreId,
					time:1,
					page:1,
					pagesize:1
				}
				// 3.发送请求
				this.$api.get_parentClues(data).then(res => {
					if(res.status){
						this.parentClueModule = res.msg
					}else{
						// uni.showToast({
						// 	title:res.msg,
						// 	icon:'none',
						// 	duration:2000
						// })
					}
				}).catch(err =>{
					console.log(err)
				})
			},
			// 获取排行榜
			getParent(){
				console.log("getParent",this.$store.getters.getToken)
				let data = {
					token:this.$store.getters.getToken,
					store_id:this.$store.getters.getStoreId,
					rank_type:3,
					page:1,
					pagesize:1,
				}
				// 3.发送请求
				this.$api.get_parentRanking(data).then(res => {
					if(res.status){
						this.parentRanking = res.msg.inviteDetail.total
						console.log(this.parentRanking,"[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]");
					}else{
						uni.showToast({
							title:res.msg,
							icon:'none',
							duration:2000
						})
					}
				}).catch(err =>{
					console.log(err)
				})
			},
			centerActHeader(index){
				if(index == 0){
					uni.navigateTo({
						url:'activity/createActivity?store_id='+ this.store_id
					})
				}else if(index == 1){
					uni.navigateTo({
						url:'./activityManage/activityManage?topNavActiveIndex=0&store_id=' + this.store_id
					})
				}else if(index == 2){
					uni.navigateTo({
						url:'./videoEnrollment/shortVideoEnrollment?store_id='+ this.store_id
					})
				}else if(index == 3){
					uni.navigateTo({
						url:'./recommendMoney/recommendMoney?store_id='+ this.store_id
					})
				}else if(index == 4){
					uni.navigateTo({
						url:'./formGatherManage/formGatherManage?store_id='+ this.store_id
					})
				}
			},
			callPhone(){
				uni.makePhoneCall({
					phoneNumber:this.teacherWay.telephone,
					success(res) {
						console.log(res)
					},
					fail(err) {
						console.log(err)
					}
				})
			},
			popupSwitch(){
				this.$refs.contactPopup.close()
			},
			contactService(){
				if(this.$store.getters.getToken){
					let data = {
							token:this.$store.getters.getToken,
							store_id:this.store_id
						}
					this.$api.service_store(data).then(res => {
						console.log(res)
						if(res.status){
							this.teacherWay = res.contact
							this.teacherWay.changePhone = this.teacherWay.telephone.replace(/(^\d{3}|\d{4}\B)/g,"$1-")
							this.$refs.contactPopup.open()
						}
					}).catch(err => {
						reject()
						console.log(err)
					})
				}else{
					location.href = this.$store.state.URL + "/customer/user/wx_login?page=" + encodeURIComponent(this.currentPge)
				}
			},
			getCustomer(){
				const data = {
					token:this.token,
					store_id:this.store_id
				}
				this.$api.getCustomerInfo(data).then(res => {
					console.log(res,'角色')
					this.teambenefits.personal=res.data.userinfo.reward_new_user_balance
					if(res.status){
						this.customer_info = res.data
						this.getUseCoupon()//获取可用的优惠券
						this.page_type = res.data.role
						// this.page_type='2'
						this.$set(this.customer_info.userinfo,'role',this.page_type)
						this.$store.commit('updataUserInfo',this.customer_info.userinfo);
						uni.setStorageSync('userInfo',this.customer_info.userinfo)
						if(this.page_type != 0){
							this.gainPerfor() //获取个人业绩
						}
						this.gainVIP()
						if(this.page_type == '3'||this.page_type=='4'){
							this.gainVIP()//获取vip过期时间
							this.gainStoreData()//获取店铺业绩
							this.isBindingCard()//判断是否已绑定银行卡
						}
						if(this.$store.getters.getToken) {
							try {
								const res = uni.getStorageSync('userInfo');
								if (res) {
									this.nickName = res.nickname
									this.avatarUrl = res.headimgurl
								}
							} catch (e) {
								this.nickName = this.$store.state.nickname
								this.avatarUrl = this.$store.state.avatarUrl
							}
						}
					}
				}).catch(err => {
					console.log(err)
				})
			},
			isBindingCard(){
				let data = {
					token:this.$store.getters.getToken,
					store_id:this.store_id
				}
				this.$api.is_binding_card(data).then(res => {
					console.log(res,'绑定银行卡')
					if(res.status){
						this.cardId  =res.res
						this.$store.commit('updataIndentId',res.res)
						uni.setStorageSync('customer_store_identification_id',res.res)
					}
				}).catch(err => {
					console.log(err)
				})
			},
			//vip距离过期还有几天
			gainVIP(){
				let data = {
					token:this.$store.getters.getToken,
					store_id:this.store_id
				}
				this.$api.vip_time(data).then(res => {
					console.log(res,'vip')
					if(res.status){
						this.viptime  =res.time
					}
				}).catch(err => {
					console.log(err)
				})
			},
			gainStoreData(){
				let data ={
					token:this.$store.getters.getToken,
					store_id:this.$store.getters.getStoreId
				}
				this.$api.gain_store_perfor(data).then(res => {
					console.log(res,'店铺业绩')
					if(res.status){
						this.todayAchievement = res.data.today
					}
				}).catch(err => {
					console.log(err)
				})
			},
			gainData(){
				let data = {
					token:this.$store.getters.getToken,
					store_id:this.store_id
				}
				this.$api.gain_shopping_data(data).then(res => {
					console.log(res,'购物卡')
					if(res.status){
						this.cardList = res
					}
				}).catch(err => {
					console.log(err)
				})
			},
			gainPerfor(){
				let data = {
					token:this.$store.getters.getToken,
					store_id:this.store_id
				}
				this.$api.gain_perfor(data).then(res => {
					console.log(res,'个人业绩')
					if(res.status){
						this.perforMsg = res.data
					}else{
						uni.showToast({
							title:res.msg,
							icon:'none',
							duration:2000
						})
					}
				}).catch(err => {
					console.log(err)
				})
			},
			getUseCoupon(){
				console.log(this.customer_info)
				let data = {
					token:this.$store.getters.getToken,
					customer_id:this.customer_info.userinfo.customer_id
					// page:1,
					// pageSize:this.pageSize
				}
				this.$api.get_activity_coupon_customer(data).then(res => {
					console.log(res)
					if(res.status){
						this.useCoupon = res.list.data
						console.log(this.couponMsg,'活动优惠券列表')
					}else{
						uni.showToast({
							title:res.msg,
							icon:'none',
							duration:2000
						})
					}
				}).catch(err => {
					console.log(err)
				})
			},
			compareTime(actTime){
				let time = new Date()
				let allTime = time.getTime()
				let data = new Date(actTime.end_date)
				let actSec = data.getTime()
				if(allTime < actSec){
					this.useCoupon.push(actTime)
				}
			},
			getAllOrder(){
				let data = {
					token:this.$store.getters.getToken,
					store_id:this.store_id
				}
				this.$api.order_list(data).then(res => {
					console.log(res,'订单列表')
					if(res.status){
						// 1.转换status，0拼团失败， 1拼团进行中， 2已完成
						let groupBad = 0
						let accomplish = 0
						let underway = 0
						res.list.forEach(item => {
							if(item.status == '0'){
								groupBad = item.number
							}else if(item.status == '1'){
								underway = item.number
							}else if(item.status == '2'){
								accomplish = item.number
							}
						})
						this.orderMsg = [
							{name:'进行中',src:'https://tool.tuanhaoke.cn/static/image/member/person_icon_deliver_fill.png',value:underway},
							{name:'已完成',src:'https://tool.tuanhaoke.cn/static/image/member/person_icon_deliver_complete.png',value:accomplish},
							{name:'失败订单',src:'https://tool.tuanhaoke.cn/static/image/member/person_icon_deliver_fail.png',value:groupBad},
						]
					}
				}).catch(err => {
					console.log(err)
				})
			},
			centerActStaff(index){
				uni.navigateTo({
					url:'./recommendMoney/recommendMoney?store_id='+ this.store_id
				})
			},
			kppCenterAct(index){
				let std = this.store_id
				if( this.viptime > 0 ){
					if(index == 0){
						uni.navigateTo({
							url:'activity/createActivity?store_id='+ this.store_id
						})
					}else if(index == 1){
						uni.navigateTo({
							url:'./activityManage/activityManage?topNavActiveIndex=0&store_id=' + this.store_id
						})
					}else if(index == 2){
						uni.navigateTo({
							url:'./videoEnrollment/shortVideoEnrollment?store_id='+ this.store_id
						})
					}else if(index == 3){
						uni.navigateTo({
							url:'./inviteNewPeople/inviteNewPeople?store_id=' + this.store_id
						})
					}else if(index == 4){
						uni.navigateTo({
							// url:'./enrollmentDemand/myEnrollmentDemand?store_id=' + this.store_id + '&customer_id=' + this.customer_info.userinfo.customer_id,
							url:'./enrollmentDemand/myEnrollmentDemand?store_id=' + this.store_id
						})
					}else if(index == 5){
						uni.navigateTo({
							url:'./staffManage/staffManage?store_id=' + this.store_id
						})
					}else if(index == 6){
						uni.navigateTo({
							url:'./fundManage/fundsList?store_id='+ this.store_id
						})
					}else if(index == 7){
						uni.navigateTo({
							url:'./recommendMoney/recommendMoney?store_id='+ this.store_id
						})
					}else if(index == 8){
						uni.navigateTo({
							url:'./formGatherManage/formGatherManage?store_id='+ this.store_id
						})
					}else if(index == 9){
						uni.navigateTo({
							url:'./addressManage/addressManage?page=manage&store_id=' + this.store_id
						})
					}
				}else{
					uni.showModal({
						content: '会员已到期，请续费',
						confirmColor: '#00A66A',
						confirmText: '去续费',
						success: function (res) {
							if (res.confirm) {
								uni.navigateTo({
									url:'vip/vip?store_id=' + std
								})
							} else if (res.cancel) {
								console.log('用户点击取消');
							}
						}
					})
				}
				
			},
			kppCenterActAdim(index){
				let std = this.store_id
				if( this.viptime > 0 ){
					if(index == 0){
						uni.navigateTo({
							url:'activity/createActivity?store_id='+ this.store_id
						})
					}else if(index == 1){
						uni.navigateTo({
							url:'./activityManage/activityManage?topNavActiveIndex=0&store_id=' + this.store_id
						})
					}else if(index == 2){
						uni.navigateTo({
							url:'./videoEnrollment/shortVideoEnrollment?store_id='+ this.store_id
						})
					}else if(index == 3){
						uni.navigateTo({
							url:'./inviteNewPeople/inviteNewPeople?store_id=' + this.store_id
						})
					}else if(index == 4){
						uni.navigateTo({
							// url:'./enrollmentDemand/myEnrollmentDemand?store_id=' + this.store_id + '&customer_id=' + this.customer_info.userinfo.customer_id,
							url:'./enrollmentDemand/myEnrollmentDemand?store_id=' + this.store_id
						})
					}else if(index == 5){
						uni.navigateTo({
							url:'./staffManage/staffManage?store_id=' + this.store_id
						})
					}else if(index == 6){
						uni.navigateTo({
							url:'./recommendMoney/recommendMoney?store_id='+ this.store_id
						})
					}else if(index == 7){
						uni.navigateTo({
							url:'./formGatherManage/formGatherManage?store_id='+ this.store_id
						})
					}else if(index == 8){
						uni.navigateTo({
							url:'./addressManage/addressManage?page=manage&store_id=' + this.store_id
						})
					}
				}else{
					uni.showModal({
						content: '会员已到期，请续费',
						confirmColor: '#00A66A',
						confirmText: '去续费',
						success: function (res) {
							if (res.confirm) {
								uni.navigateTo({
									url:'vip/vip?store_id=' + std
								})
							} else if (res.cancel) {
								console.log('用户点击取消');
							}
						}
					})
				}
				
			},
			centerPage(flag){
				var std = this.store_id
				if(this.$store.getters.getToken){
					if(flag == 'renew'){
						// 立即续费
						uni.navigateTo({
							url:'vip/vip?store_id=' + this.store_id
						})
					}else if(flag == 'shop'){
						// 店铺信息
						uni.navigateTo({
							url:'shop/shopMsg?store_id=' + this.store_id 
						})
					}//else if (flag == 'collectioncode'){
					// 	// 店铺个人收款码
					// 	uni.navigateTo({
					// 		url:'collectioncode/addcollectioncode?store_id=' + this.store_id
					// 	})
					//}
					else if(flag == 'perfor'){
						// 个人业绩
						uni.navigateTo({
							url:'personPerformance/personPerformance?store_id=' + this.store_id
						})
					}else if(flag == 'award'){
						// 平台奖励(元)
						uni.navigateTo({
							url:'platformAward/platformAward?store_id=' + this.store_id
						})
					}else if(flag == 'client'){
						// 客户资源
						uni.navigateTo({
							url:'clientResource/clientResource?store_id=' + this.store_id
						})
					}else if(flag == 'coupon'){
						// 我的优惠券
						uni.navigateTo({
							url:'couponManage/couponManage?store_id=' + this.store_id
						})
					}else if(flag == 'order'){
						// 我的订单
						uni.navigateTo({
							url:'orderManage/orderManage?state=0&store_id=' + this.store_id
						})
					}else if(flag == 'question'){
						// 如何使用
						uni.navigateTo({
							url:'question/question?store_id=' + this.store_id
						})
					}else if(flag == 'goHome'){
						//我的购物卡
						uni.navigateTo({
							url:'../recommend/recommend?is_extension=1'
						})
					}else if(flag == 'updata'){
						// 个人信息修改
						uni.navigateTo({
							url:'updataMsg?store_id=' + this.store_id
							
						})
					}else if(flag == 'perfor'){
						// 个人信息修改
						uni.navigateTo({
							url:'shopPerformance/shopPerformance?store_id=' + this.store_id
						})
					}else if(flag == 'register'){
						// 快速注册通道
							uni.navigateTo({
								url: '/pages/home/registeredShop?shopShare=1',
							})
						// uni.navigateTo({
						// 	url:'../home/organization/organization?store_id=' + this.store_id + '&shopShare=1'
						// })
					}else if(flag == 'shopPerfor'){
						// 查看所有业绩
						if( this.viptime > 0 ){
							uni.navigateTo({
								url:'./shopPerformance/shopPerformance?store_id=' + this.store_id
							})
						}else{
							uni.showModal({
								content: '会员已到期，请续费',
								confirmColor: '#00A66A',
								confirmText: '去续费',
								success: function (res) {
									if (res.confirm) {
										uni.navigateTo({
											url:'vip/vip?store_id=' + std
										})
									} else if (res.cancel) {
										console.log('用户点击取消');
									}
								}
							})
						}
					}
				}else{
					location.href = this.$store.state.URL + '/customer/user/wx_login?page=' + encodeURIComponent(this.currentPge)
				}
			},
			orderState(index){
				uni.navigateTo({
					url:'orderManage/orderManage?state='+ index + '&store_id=' + this.store_id
				})
			},
			// #ifdef H5
				login(){
					location.href = this.$store.state.URL + "/customer/user/wx_login?page=" +encodeURIComponent(this.currentPge)
				},
			// #endif
			// #ifdef MP-WEIXIN
				login(){
					userLogin().then((res)=>{
						console.log(res,"？？？？？？？？？？？？？？？？？？？？？？？？？？？？")
						console.log(555555)
						this.gainShopId()
					});
				},
				gainShopId() {
					// console.log('gainShopId',this.token)
					let data = {
						token:this.$store.getters.getToken,
					}
					console.log(data,'gainShopId data')
					this.$api.judge_store(data).then(res => {
						console.log(res,'judge_store')
						if(res.status){
							// this.$store.commit('updataOrganId',res.customer_organization_id);
							this.$store.commit('updateStoreId',res.store_id);
							// uni.setStorageSync("OrganId",res.customer_organization_id)
							uni.setStorageSync("shopID",res.store_id)
							console.log(this.$store.getters.getStoreId,'this.$store.getters.getShopId')
							if(this.$store.getters.getStoreId){						
								uni.redirectTo({
									url:'/pages/memberCenter/memberCenter?store_id=' + this.$store.getters.getStoreId
								})
							}
						}else{
								this.gainFreeVIP()
						}
					}).catch(err => {
						console.log(err,'this.$api.judge_store')
					})
				},
			// #endif
			logout(){
				uni.clearStorageSync();
				location.href = this.$store.state.URL + "/customer/user/wx_login?page=" +encodeURIComponent(this.currentPge)
			},
			// 家长线索跳转
			cluesJump(i){
				if( this.viptime > 0 ){
					if( i == 1 ){
						uni.navigateTo({
							url:'/pages/memberCenter/parentClues/parentClues?store_id=' + this.store_id
						})
					}else if( i == 2 ){
						uni.navigateTo({
							url:'/pages/memberCenter/parentClues/parentRanking?store_id=' + this.store_id
						})
					}else if( i == 3 ){
						uni.navigateTo({
							url:'/pages/memberCenter/parentClues/parentClues?store_id=' + this.store_id
						})
					}
				}else{
					let std = this.store_id
					uni.showModal({
						content: '会员已到期，请续费',
						confirmColor: '#00A66A',
						confirmText: '去续费',
						success: function (res) {
							if (res.confirm) {
								uni.navigateTo({
									url:'vip/vip?store_id=' + std
								})
							} else if (res.cancel) {
								console.log('用户点击取消');
							}
						}
					})
				}
			},
			teamclick(i,money){
				if(money==null){
					money=0
				}
				if( this.viptime > 0 ){
					if( i == 1 ){
						uni.navigateTo({
							url:'/pages/memberCenter/teambenefits/personalreward?store_id=' + this.store_id +'&money=' + money
						})
					}else if( i == 2 ){
						uni.navigateTo({
							url:'/pages/memberCenter/teambenefits/teambenefits?store_id=' + this.store_id +'&money=' + money +'&withdrawal_balance=' +this.teambenefits.storeInfo.withdrawal_balance||0
						})
					}else if( i == 3 ){
						uni.navigateTo({
							url:'/pages/memberCenter/teambenefits/teamrewards?store_id=' + this.store_id +'&money=' + money
						})
					}
				}else{
					let std = this.store_id
					uni.showModal({
						content: '会员已到期，请续费',
						confirmColor: '#00A66A',
						confirmText: '去续费',
						success: function (res) {
							if (res.confirm) {
								uni.navigateTo({
									url:'vip/vip?store_id=' + std
								})
							} else if (res.cancel) {
								console.log('用户点击取消');
							}
						}
					})
				}
			},
		}
	}
</script>

<style scoped>
	.recommend-coupon-reward{
		display: flex;
		width: 690upx;
		position:absolute;
		top: 210upx;
		left: 150upx;
		font-size: 25upx;
		color: #999999;
		margin-top: 35upx;
	}
	.teacher-phone-content{
		width: 100%;
		height: 64upx;
		line-height: 64upx;
		background: #F3F3F4;
		margin-top: 20upx;
		text-align: center;
	}
	.teacher-phone-title{
		width: 100%;
		display: flex;
		padding-left: 74upx;
		box-sizing: border-box;
		margin-top: 10upx;
	}
	.teacher-phone-title>text{
		color: #333333;
		font-size: 28upx;
	}
	.teacher-phone-title>view{
		width: 164upx;
		height: 40upx;
		background: linear-gradient(to right,#FE9543,#FF664F);
		box-shadow: 0 4upx 8upx 0 rgba(255, 105, 78, 0.3);
		border-radius: 4upx;
		text-align: center;
		line-height: 40upx;
		margin-left: 20upx;
	}
	.teacher-phone-title>view>image{
		width: 20upx;
		height: 20upx;
	}
	.teacher-phone-title>view>text{
		color: #FFFFFF;
		font-size: 24upx;
	}
	.teacher-code-add{
		color: #666666;
		font-size: 26upx;
		text-align: center;
	}
	.teacher-code-add>text{
		color: #FF391F;
	}
	.teacher-code-content>image{
		width: 324upx;
		height: 322upx;
		margin: 12upx auto;
		margin-left: 40upx;
	}
	.teacher-code-content-tip{
		color: #999999;
		font-size: 24upx;
		text-align: center;
	}
	.teacher-code-tip{
		text-align: center;
		color: #FFFFFF;
		font-size: 24upx;
		margin-top: 10upx;
	}
	.teacher-code{
		width: 100%;
		height: 686upx;
		background: linear-gradient(#FE9543,#FF664F);
		padding: 0 30upx;
		box-sizing: border-box;
	}
	.teacher-code-content{
		width: 100%;
		padding: 30upx;
		box-sizing: border-box;
		background: #FFFFFF;
		border-radius: 20upx;
		margin-top: 30upx;
	}
	.pupop-line{
		width: 84upx;
		height: 2upx;
		border-top: 2upx solid rgba(255,255,255,0.6);
		margin-top: 64upx;
	}
	.pupop-line:nth-child(1){
		margin-left: 84upx;
	}
	.teacher-code-title{
		display: flex;
	}
	.teacher-code-title-detail{
		color: #FFFFFF;
		font-size: 34upx;
		margin: 0 30upx;
		margin-top: 40upx;
	}
	.popup_box_de{
		height: 924upx;
		width: 590upx;
		position: relative;
	}
	.popup_box_close{
		width: 52upx;
		height: 52upx;
		position: absolute;
		top: 0;
		right: 0;
	}
	.popup_box_content{
		width: 100%;
		height: 662upx;
		background: #FFFFFF;
		position: absolute;
		top: 72upx;left: 0;
		border-radius: 16upx;
		z-index: 999;
		padding: 0 30upx;
		padding-top: 20upx;
		box-sizing: border-box;
	}
	.recommend-coupon-content{
		width: 100%;
		background: #FFFFFF;
		display: flex;
		justify-content: space-between;
		padding: 40upx 0 0upx;
		box-sizing: border-box;
	}
	.recommend-coupon-details{
		flex-grow: 1;
		text-align: center;
	}
	.recommend-coupon-details>view:first-child{
		color: #333333;
		font-size: 36upx;
	}
	.recommend-coupon-details>view:last-child{
		color: #999999;
		font-size: 24upx;
	}
	.recommend-coupon-line{
		width: 2upx;
		height: 46upx;
		border-left: 2upx solid #EFEFEF;
		margin-top: 22upx;
	}
	page{
		background: #F5F5F5;
		padding-bottom: 50upx;
		box-sizing: border-box;
	}
	.vip-icon{
		font-size: 24upx;
		margin-top: 12upx;
		color: #FFFFFF;
	}
	
	/* 个人中心-机构负责人-CSS */
	.member-center-page{
		width: 100%;
		overflow: hidden;
		/* padding-bottom: 40upx; */
		/* box-sizing: border-box; */
	}
	.member-msg-all{
		width: 100%;
		background: #F3F3F4;
		position: relative;
	}
	.member-msg-allass{
		width: 100%;
		background: #F3F3F4;
		position: relative;
		height: 650upx;
	}
	.member-msg-person{
		width: 100%;
		/* height: 236upx; */
		padding: 0 30upx;
		box-sizing: border-box;
		background: url(https://tool.tuanhaoke.cn/static/image/member/assets-bg.png) no-repeat;
		background-size: 100% 100%;
		display: flex;
		justify-content: space-between;
		padding-bottom: 30upx;
	}
	.member-msg-person-left,.header-msg-basic{
		display: flex;
		margin-top: 20upx;
	}
	.bg-img{
		background: #fff;;
	}
	.member-msg-person-left>image,.header-msg-basic>image,.bg-img{
		width: 112upx;
		height: 112upx;
		border-radius: 50%;
	}
	.memeber-msg-details{
		margin-left: 20upx;
		padding-top: 6upx;
		box-sizing: border-box;
	}
	.vip-msg{
		display: flex;
	}
	.vip-msg>image{
		width: 56upx;
		height: 28upx;
		margin-top: 4upx;
	}
	.member-msg-person-right>image{
		width: 12upx;
		height: 20upx;
		margin-top: 42upx;
	}
	.memeber-msg-details>view:first-child,.deng-lu{
		color: #FFFFFF;
		font-size: 36upx;
	}
	.vip-msg>text{
		color: #FFFFFF;
		font-size: 24upx;
		line-height: 38upx;
	}
	.renew-vip{
		width: 108upx;
		height: 38upx;
		line-height: 38upx;
		text-align: center;
		border: 1upx solid #FFF703;
		border-radius: 2upx;
		color: #FFF703;
		font-size: 20upx;
		margin-left: 8upx;
	}
	.performance-today{
		width: 690upx;
		height: 240upx;
		background: #FFFFFF;
		border-radius: 20upx;
		position: absolute;
		left: 50%;bottom: 5upx;
		transform: translate(-50%,0);
		box-shadow: 0 8upx 16upx 0 rgba(0, 0, 0, 0.09);
		padding: 30upx 20upx;
		box-sizing: border-box;
	}
	.performance-today-title{
		display: flex;
		justify-content: space-between;
	}
	.performance-today-title>view:first-child{
		color: #333333;
		font-size: 30upx;
		line-height: 54upx;
	}
	.performance-today-title>view>text{
		color: #999999;
		font-size: 28upx;
		vertical-align: middle;
		line-height: 54upx;
	}
	.performance-today-title>view>image{
		width: 20upx;
		height: 20upx;
		margin-left: 10upx;
		vertical-align: middle;
	}
	.performance-today-msg{
		margin-top: 38upx;
		display: flex;
		position: relative;
	}
	.common-style:nth-child(2){
		margin: 0 68upx;
	}
	.common-style:nth-child(3){
		margin-left: 48upx;
	}
	.common-style>text{
		display: block;
		text-align: center;
	}
	.common-style>text:first-child{
		color: #333333;
		font-size: 36upx;
	}
	.common-style>text:last-child{
		color: #999999;
		font-size: 24upx;
	}
	.line{
		width: 2upx;
		height: 46upx;
		border-left: 2upx solid #EFEFEF;
		position: absolute;
		top: 20upx;left: 202upx;
	}
	.line:after{
		content: '';
		width: 2upx;
		height: 46upx;
		border-left: 2upx solid #EFEFEF;
		position: absolute;
		left: 248upx;
	}
	.shop-msg{
		width: 100%;
		padding: 30upx;
		box-sizing: border-box;
		display: flex;
		justify-content: space-between;
		background: #FFFFFF;
		margin-top: 340upx;
	}
	.shop-msg-title{
		color: #333333;
		font-size: 30upx;
		margin-top: 10upx;
		vertical-align: middle;
	}
	.shop-msg-details{
		vertical-align: middle;
	}
	.shop-msg-details>text{
		color: #FF391F;
		font-size: 28upx;
		vertical-align: middle;
	}
	.shop-msg-details>image{
		width: 20upx;
		height: 20upx;
		margin-left: 10upx;
		vertical-align: middle;
	}
	.operation-manage{
		width: 100%;
		padding: 0 30upx;
		box-sizing: border-box;
		background: #FFFFFF;
		margin-top: 20upx;
	}
	.operation-manage-title{
		width: 100%;
		padding: 30upx 0;
		box-sizing: border-box;
		border-bottom: 1upx solid #DEDEDE;
		display: flex;
		justify-content: space-between;
	}
	.operation-manage-title>view{
		color: #333333;
		font-size: 30upx;
	}
	.operation-manage-title>image{
		width: 20upx;
		height: 20upx;
		margin-top: 10upx;
	}
	.operation-manage-details{
		margin-top: 52upx;
		display: flex;
		flex-wrap: wrap;
		box-sizing: border-box;
	}
	.operation-manage-details>view{
		margin-right: 92upx;
		margin-bottom: 62upx;
		position: relative;
	}
	.operation-manage-details>view:nth-child(4){
		margin-right: 0;
	}
	.operation-manage-details>view:nth-child(5),.operation-manage-details>view:nth-child(6),.operation-manage-details>view:nth-child(7){
		margin-bottom: 0;
	}
	.operation-manage-details>view>image{
		width: 48upx;
		height: 48upx;
		margin-left: 24upx;
	}
	.operation-manage-details>view .details-msg{
		color: #333333;
		font-size: 24upx;
		text-align: center;
	}
	.operation-tip{
		color: #FFFFFF;
		font-size: 22upx;
		line-height: 28upx;
		background: #FF391F;
		border-radius: 14upx 14upx 14upx 0;
		color: #FFFFFF;
		text-align: center;
		position: absolute;
		top: -26upx;
	}
	.operation-manage-details>view:nth-child(6) .operation-tip{
		width: 64upx;
		right: -20upx;
	}
	.operation-manage-details>view:nth-child(7) .operation-tip{
		width: 106upx;
		right: -62upx;
	}
	.performance-award-resource,.coupon-order{
		width: 100%;
		padding: 0 30upx;
		box-sizing: border-box;
		background: #FFFFFF;
		margin-top: 20upx;
		margin-bottom: 20upx;
	}
	.performance-person{
		width: 100%;
		padding: 30upx 0;
		box-sizing: border-box;
		border-bottom: 1upx solid #DEDEDE;
		display: flex;
		justify-content: space-between;
	}
	.performance-person:last-child{
		border-bottom: 0;
	}
	.performance-person>view:first-child{
		color: #333333;
		font-size: 30upx;
		margin-top: 10upx;
	}
	.performance-person>view>text{
		color: #999999;
		font-size: 28upx;
		vertical-align: middle;
	}
	.performance-person>view>text .act-color{
		color: #FF391F;
	}
	.performance-person>view>image{
		width: 20upx;
		height: 20upx;
		margin-left: 14upx;
		vertical-align: middle;
	}
	.order-details-mag{
		width: 100%;
		display: flex;
		justify-content: space-around;
		padding: 52upx 0 30upx;
		box-sizing: border-box;
	}
	.order-details-mag>view{
		position: relative;
	}
	.order-details-mag>view>image{
		width: 48upx;
		height: 48upx;
		margin-left: 16upx;
	}
	.order-details-mag>view:last-child>image{
		margin-left: 30upx;
	}
	.order-details-mag>view .order-details-state{
		color: #333333;
		font-size: 28upx;
		text-align: center;
	}
	.order-details-tip{
		width: 30upx;
		height: 30upx;
		line-height: 30upx;
		text-align: center;
		border-radius: 50%;
		color: #FF391F;
		border: 1upx solid #FF391F;
		background: #FFFFFF;
		font-size: 24upx;
		position: absolute;
		top: -12upx;right: 12upx;
	}
	.order-details-mag>view:last-child .order-details-tip{
		right: 30upx;
	}
	.reLogin{
		margin: 0 auto;
		text-align: center;
	}
	.reLogin span{
		color: #E30000;
	}
	/* 个人中心-机构负责人-CSS */
	/* 课拍拍运营管理 */
	.kpp-operation-manage-details{
		margin-top: 52upx;
		display: flex;
		flex-wrap: wrap;
		box-sizing: border-box;
	}
	.kpp-operation-manage-details>view{
		width: 170upx;
		text-align: center;
		margin-bottom: 62upx;
		position: relative;
	}
	.kpp-operation-manage-details>view:nth-child(4){
		margin-right: 0;
	}
	.kpp-operation-manage-details>view:nth-child(5),.kpp-operation-manage-details>view:nth-child(6),.kpp-operation-manage-details>view:nth-child(7){
		margin-bottom: 0;
	}
	.kpp-operation-manage-details>view>image{
		width: 48upx;
		height: 48upx;
	}
	.kpp-operation-manage-details>view .details-msg{
		color: #333333;
		font-size: 24upx;
		text-align: center;
	}
	.kpp-operation-tip{
		position: absolute;
		top: -26upx;
		color: #FFFFFF;
		font-size: 22upx;
		line-height: 28upx;
		background: #FF391F;
		border-radius: 14upx 14upx 14upx 0;
		color: #FFFFFF;
		text-align: center;
	}
	.kpp-operation-manage-details>view:nth-child(7) .kpp-operation-tip{
		width: 64upx;
		right: 20upx;
	}
	.kpp-operation-manage-details>view:nth-child(8) .kpp-operation-tip{
		width: 106upx;
		left: 84upx;
	}
</style>
